﻿using Sirenix.OdinInspector;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TMPro;
using UnityEngine;
using UnityEngine.UI;

namespace TowerDefence_Zombie
{
    public class TaskProsItem : MonoBehaviour
    {
        [Title("任务目标"),SerializeField] private TextMeshProUGUI m_TaskProsText;

        [SerializeField,Title("进度条")] private Image m_ProgressBar;
        public void SetTaskPros(string taskPros,float progress)
        {
            m_TaskProsText.text = taskPros;
            m_ProgressBar.fillAmount = progress;
        }
    }

}
